import Vue from 'vue'
import App from './App.vue'
/* 路由 */
import router from './router'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(Element)
import {
  parseTime
} from "@/utils/ruoyi";

import 'jquery/dist/jquery.min'
// import '@/assets/styles/bootstrap.min.css'
import '@/assets/styles/index.scss' // global css

import '@/assets/css/style.css'
import '@/assets/css/responsive.css'
/* 头部组件 */
import Header from './components/Header'
Vue.component("Header", Header)

/* 尾部组件 */
import Footer from './components/Footer'
Vue.component("Footer", Footer)
Vue.config.productionTip = false
Vue.prototype.parseTime = parseTime;
router.beforeEach((to, from, next) => {
	if (to.meta.title) {
		document.title = to.meta.title
	}
	next();
});

new Vue({
	el: '#app',
	router,
	components: {
		App
	},
	template: '<App/>'
})